{*
%%%copyright%%%
 * phpMyTicket - ticket reservation system
 * Copyright (C) 2004-2005 Anna Putrino, Stanislav Chachkov. All rights reserved.
 *
 * This file is part of phpMyTicket.
 *
 * This file may be distributed and/or modified under the terms of the
 * "GNU General Public License" version 2 as published by the Free
 * Software Foundation and appearing in the file LICENSE included in
 * the packaging of this file.
 *
 * Licencees holding a valid "phpmyticket professional licence" version 1
 * may use this file in accordance with the "phpmyticket professional licence"
 * version 1 Agreement provided with the Software.
 *
 * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING
 * THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 * PURPOSE.
 *
 * The "phpmyticket professional licence" version 1 is available at
 * http://www.phpmyticket.com/ and in the file
 * PROFESSIONAL_LICENCE included in the packaging of this file.
 * For pricing of this licence please contact us via e-mail to 
 * info@phpmyticket.com.
 * Further contact information is available at http://www.phpmyticket.com/
 *
 * The "GNU General Public License" (GPL) is available at
 * http://www.gnu.org/copyleft/gpl.html.
 *
 * Contact info@phpmyticket.com if any conditions of this licencing isn't 
 * clear to you.
 
 *}{counter}
{assign var='num' value=$count%2}
<tr class="tr_{$num}">
<td  valign='top'  > <b>{$event_item->event_name}</b> <br>
{$event_item->event_date|date_format:"%e %b %Y"} - 
{$event_item->event_time|date_format:#time_format#} <br> 
{$event_item->event_ort_name}</td>
<td  valign='top'>
{if $seat_item->discounts}

{* there are discounts *}
{$seat_item->count()} x {$category_item->cat_name} ({$category_item->cat_price|string_format:"%.2f"}{$organizer_currency})
<table border='0' width='100%'>
{section name="seats" loop=$seats_id}
<tr><td class='view_cart_td'><li>
{if !$category_item->cat_numbering or $category_item->cat_numbering eq 'both'}
    {$seats_nr[seats][0]} - {$seats_nr[seats][1]}
{elseif $category_item->cat_numbering eq 'seat'}
    {$seats_nr[seats][1]}
{elseif $category_item->cat_numbering eq 'rows'}
    {#row#}
 {$seats_nr[seats][0]}
{/if}
</td><td class='view_cart_td'>
{assign var='disc' value=$seat_item->discounts[seats]}
{if $disc}
    {$disc->discount_name}
{else}
    {#normal#}
{/if}
</td><td>
{if $disc}
 {$disc->apply_to($category_item->cat_price)|string_format:"%.2f"} {$organizer_currency}
{else}
  {$category_item->cat_price|string_format:"%.2f"} {$organizer_currency}
{/if}

</td></tr>  
{/section}
</table>


{else}

{* no discounts *}
{$seat_item->count()} x
{$category_item->cat_name} ({$category_item->cat_price|string_format:"%.2f"}{$organizer_currency})


{if !$category_item->cat_numbering or $category_item->cat_numbering eq 'both'}
  {section name="seats" loop=$seats_id}
    <li> {$seats_nr[seats][0]} - {$seats_nr[seats][1]}
  {/section}
{elseif $category_item->cat_numbering eq 'seat'}
  {section name="seats" loop=$seats_id}
    <li> {$seats_nr[seats][1]}
  {/section}
{elseif $category_item->cat_numbering eq 'rows'}
{foreach key=row item=count from=$seat_item_rows_count}
  <li>{$count} x    
    {#row#}
{$row}
{/foreach}
{/if}  
{/if}		
</td><td  valign='top' align='right' >
{$seat_item->total_price($category_item->cat_price)|string_format:"%.2f"}  
</td>
{if $three_cols neq "on"}
<td  valign='top'> 
{if $seat_item->is_expired()}
    <span style="color:#ff0000;">{#expired#}</span>
{else}
<img src='images/clock.gif' valign="middle" align="middle"> {$seat_item->ttl()} min.    
{/if} 
{if $check_out neq "on"}   
<br><a  href='index.php?action=remove&event_id={$event_item->event_id}&cat_id={$category_item->cat_id}&item={$seat_item_id}'> 
    {#remove#}
</a>
{/if}
</td>
{/if}
</tr>
